package com.liao.badminton.service;

import com.liao.badminton.code.PageParam;
import com.liao.badminton.code.ProjectException;
import com.liao.badminton.code.ResponseRest;
import com.liao.badminton.dto.FileShardDto;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author liaocheng
 * @date 2023-11-11
 * description:文件
 */
public interface FileShardService {
    /**
     * 新增
     */
    ResponseRest saveFileShard(FileShardDto param) throws ProjectException;

    /**
     * 修改
     */
    ResponseRest updateFileShard(FileShardDto param) throws ProjectException;

    /**
     * 查询列表
     */
    ResponseRest findFileShardByPageParam(PageParam<FileShardDto> PageParam) throws ProjectException;

    /**
     * 查询详情
     */
    ResponseRest findDetail(FileShardDto param) throws ProjectException;

    /**
     * 删除
     */
    ResponseRest deletesFileShard(FileShardDto param) throws ProjectException;

    ResponseRest uploadFileShard(MultipartFile shard, FileShardDto fileShard);

    ResponseRest bs64Upload(FileShardDto fileShard);
}
